<template>
	<view class="release-control-box">
		<view class="control-box">
			<view class="control-item">
				<image class="control-img" src="/static/publishFeel.png" @click="jumpTo('publishDynamic')"></image>
				<text class="control-text">动态</text>
			</view>
			<view class="control-item">
				<image class="control-img" src="/static/publishActivity.png" @click="jumpTo('publishActivity')"></image>
				<text class="control-text">活动</text>
			</view>
			<!-- <view class="control-item">
				<image class="control-img" src="/static/publishOnsale.png" @click="jumpTo('publishActivity')"></image>
				<text class="control-text">优惠</text>
			</view> -->
		</view>
		<image class="close-img" src="/static/publishClose.png" @click="close()"></image>
	</view>
</template>

<script>
	export default {
		name:"releaseControl",
		data() {
			return {
				
			};
		},
		methods: {
			close() {
				this.$emit("close");
			},
			jumpTo(path) {
				uni.navigateTo({
					url: `/pages/${path}`
				})
				this.close();
			}
		}
	}
</script>

<style lang="scss">
	.release-control-box {
		display: flex;
		flex-direction: column;
		align-items: center;
		
		.control-box {
			display: flex;
			align-items: center;
			justify-content: space-between;
			
			.control-item {
				padding: 0 42rpx 0 42rpx;
				display: flex;
				flex-direction: column;
				align-items: center;
				
				.control-img {
					width: 160rpx;
					height: 160rpx;
				}
				
				.control-text {
					margin-top: 22rpx;
					font-size: 32rpx;
					font-weight: 400;
					color: #FFFFFF;
				}
			}
		}
		
		.close-img {
			margin: 74rpx;
			width: 100rpx;
			height: 100rpx;
		}
	}
</style>